
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module admin</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>admin</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/sp4rc/Documents/Studium/Semesterarbeit/workspace/webCA/src/webca/webca/controllers/admin.py">/home/sp4rc/Documents/Studium/Semesterarbeit/workspace/webCA/src/webca/webca/controllers/admin.py</a></font></td></tr></table>
    <p><tt>This&nbsp;module&nbsp;contains&nbsp;all&nbsp;necessary&nbsp;functions&nbsp;to&nbsp;administrate&nbsp;<br>
the&nbsp;certificate&nbsp;authority.&nbsp;<br>
&nbsp;<br>
Todo:<br>
&nbsp;<br>
*&nbsp;create&nbsp;system&nbsp;call&nbsp;handler&nbsp;<br>
*&nbsp;integrate&nbsp;better&nbsp;logging&nbsp;facility&nbsp;<br>
*&nbsp;add&nbsp;input&nbsp;validation<br>
*&nbsp;add&nbsp;status&nbsp;to&nbsp;each&nbsp;certificate&nbsp;in&nbsp;the&nbsp;listing&nbsp;(valid/revoked)</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="webca.lib.helpers.html">webca.lib.helpers</a><br>
<a href="logging.html">logging</a><br>
</td><td width="25%" valign=top><a href="os.html">os</a><br>
<a href="subprocess.html">subprocess</a><br>
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
<a href="webca.controllers.tools.html">webca.controllers.tools</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="webca.lib.base.html#BaseController">webca.lib.base.BaseController</a>(<a href="pylons.controllers.core.html#WSGIController">pylons.controllers.core.WSGIController</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="admin.html#AdminController">AdminController</a>
</font></dt></dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="AdminController">class <strong>AdminController</strong></a>(<a href="webca.lib.base.html#BaseController">webca.lib.base.BaseController</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="admin.html#AdminController">AdminController</a></dd>
<dd><a href="webca.lib.base.html#BaseController">webca.lib.base.BaseController</a></dd>
<dd><a href="pylons.controllers.core.html#WSGIController">pylons.controllers.core.WSGIController</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="AdminController-boot_strap"><strong>boot_strap</strong></a>(self)</dt><dd><tt>module&nbsp;to&nbsp;initialize&nbsp;the&nbsp;CA,&nbsp;it&nbsp;creates&nbsp;the&nbsp;folder&nbsp;structure,&nbsp;<br>
creates&nbsp;and&nbsp;fills&nbsp;the&nbsp;OpenSSL&nbsp;serial&nbsp;file,&nbsp;database.&nbsp;Also&nbsp;<br>
it&nbsp;creates&nbsp;a&nbsp;self&nbsp;signed&nbsp;Root&nbsp;Certificate&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;<br>
Todo:<br>
*&nbsp;output&nbsp;folder/file&nbsp;creation&nbsp;to&nbsp;view<br>
*&nbsp;needs&nbsp;more/better&nbsp;checking</tt></dd></dl>

<dl><dt><a name="AdminController-certs"><strong>certs</strong></a>(self)</dt><dd><tt>This&nbsp;module&nbsp;handles&nbsp;the&nbsp;CA's&nbsp;certificates,&nbsp;it&nbsp;is&nbsp;responsible&nbsp;for&nbsp;<br>
certificate&nbsp;printing&nbsp;and&nbsp;revocation,&nbsp;also&nbsp;the&nbsp;OpenSSL&nbsp;database&nbsp;can&nbsp;<br>
be&nbsp;printed.<br>
&nbsp;<br>
Todo:<br>
&nbsp;<br>
*&nbsp;provide&nbsp;better&nbsp;checks</tt></dd></dl>

<dl><dt><a name="AdminController-sign_req"><strong>sign_req</strong></a>(self)</dt><dd><tt>This&nbsp;module&nbsp;is&nbsp;responsible&nbsp;for&nbsp;printing,&nbsp;signing&nbsp;and&nbsp;deleting&nbsp;<br>
of&nbsp;certificate&nbsp;signing&nbsp;requests.&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
Todo:<br>
&nbsp;<br>
*&nbsp;...</tt></dd></dl>

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>requires_auth</strong> = True</dl>

<hr>
Methods inherited from <a href="webca.lib.base.html#BaseController">webca.lib.base.BaseController</a>:<br>
<dl><dt><a name="AdminController-__before__"><strong>__before__</strong></a>(self)</dt></dl>

<dl><dt><a name="AdminController-__call__"><strong>__call__</strong></a>(self, environ, start_response)</dt><dd><tt>Invoke&nbsp;the&nbsp;Controller</tt></dd></dl>

<hr>
Data descriptors inherited from <a href="pylons.controllers.core.html#WSGIController">pylons.controllers.core.WSGIController</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>c</strong> = &lt;paste.registry.StackedObjectProxy object at 0x2aaf190&gt;<br>
<strong>config</strong> = {'pylons.c_attach_args': True, 'buffet.template_...'charset': 'utf-8', 'content_type': 'text/html'}}<br>
<strong>log</strong> = &lt;logging.Logger instance at 0x2abe0e0&gt;<br>
<strong>request</strong> = &lt;paste.registry.StackedObjectProxy object at 0x29b25d0&gt;<br>
<strong>response</strong> = &lt;paste.registry.StackedObjectProxy object at 0x29d0650&gt;<br>
<strong>session</strong> = &lt;paste.registry.StackedObjectProxy object at 0x2aa7fd0&gt;</td></tr></table>
</body></html>